package com.yesep.common.constant;

import lombok.*;

/**
 * @program: envm-core
 * @description: 返回枚举类
 * @author: quliang
 * @create: 2019-07-12 09:41
 **/
@AllArgsConstructor
public enum RetEnum {

    //公共返回码以10开头
    RET_COMM_SUCCESS(0, "success"),
    RET_COMM_PARAM_ERROR(10001, "参数错误"),
    RET_COMM_PARAM_NOT_FOUNT(10002, "缺少参数"),
    RET_COMM_OPERATION_FAIL(10003, "操作失败"),
    RET_COMM_RECORD_NOT_EXIST(10004, "记录不存在"),
    RET_COMM_UNKNOWN_ERROR(10999, "未知错误");


    /**
     * 错误码
     */
    @Getter
    private int code;
    /**
     * 错误信息
     */
    @Getter
    private String message;
}
